<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">编辑学生</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal">
        {{ csrf_field() }}
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="name">学生名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="name" value="{{ $child->name }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="nice_name">小名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="nice_name" value="{{ $child->nice_name }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="sex">性别</label>
                <div class="col-sm-10 radio">
                    @if($child->sex == 1)
                        <label><input type="radio" name="sex" value="1" checked>男</label>
                        <label><input type="radio" name="sex" value="0">女</label>
                    @elseif($child->sex == 0)
                        <label><input type="radio" name="sex" value="1">男</label>
                        <label><input type="radio" name="sex" value="0" checked>女</label>
                    @endif
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="birthday">出生日期</label>
                <div class="input-group date">
                    <div class="input-group-addon">
                        <i class="fa fa-calendar"></i>
                    </div>
                    <input type="text" class="form-control pull-right" name="birthday" id="datepicker" value="{{ $child->birthday }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="p_info">家长信息</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="p_info" value="{{ $child->p_info }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="school">学校信息</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="school" value="{{ $child->school }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="source">来源</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="source" value="{{ $child->source }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="remark">备注</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="remark" value="{{ $child->remark }}">
                </div>
            </div>
        </div>
        <!-- /.box-body -->

        <div class="box-footer">
            <button type="button" class="btn btn-primary" data-url="{{ url('admin/children', $child->id) }}" data-type="PATCH" onclick="subAction(this)">提 交</button>
            <button type="button" class="btn btn-default" style="margin-right: 5px;" data-url="{{ url('/admin/children') }}" onclick="jumpfun(this)">返 回</button>
        </div>
    </form>
</div>